package com.xyd.pojo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
public class User implements Serializable {
    private int id;
    private String name;
    private String password;
    private int age;
    private Date hiredate;
    private double salary;

    public User(int id, String name) {
        this.id = id;
        this.name = name;
    }
}
